require('./bootstrap');

window.Vue = require('vue');

Vue.component('list-items', require('./components/ListItems.vue').default);
Vue.component('new-item', require('./components/NewItem.vue').default);

const app = new Vue({
    el: '#app',
    data() {
        return {}
    },
    mounted() {
        let blurred = false;
        window.onblur = function() { blurred = true; };
        window.onfocus = function() { blurred && (location.reload()); };
    },
    methods: {
    }
});
